API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsGraphics
Meshes
InputLayouts
MeshInputLayout.h
1
// MeshInputLayout.h
3
//
5
6
namespace
nkGraphics
7
{
11
class
MeshInputLayout
final
12
{
13
public :
14
15
// Constructor, destructor
19
MeshInputLayout
() ;
23
~MeshInputLayout
() ;
24
25
// Getters
29
unsigned
long
long
getHash
()
const
;
33
nkMemory::StringView
getPositionAttributeName
()
const
;
37
nkMemory::StringView
getNormalAttributeName
()
const
;
41
nkMemory::StringView
getTexCoordAttributeName
()
const
;
42
43
// Setters
50
void
setAttribute
(
const
MeshInputLayoutAttribute
& attribute,
unsigned
int
index) ;
56
void
setPositionAttributeName
(
const
nkMemory::StringView
& value) ;
62
void
setNormalAttributeName
(
const
nkMemory::StringView
& value) ;
68
void
setTexCoordAttributeName
(
const
nkMemory::StringView
& value) ;
69
70
// Attribute management
80
void
addAttribute
(
const
MeshInputLayoutAttribute
& attribute) ;
87
const
MeshInputLayoutAttribute
*
getAttribute
(
unsigned
int
index)
const
;
94
const
MeshInputLayoutAttribute
*
getAttribute
(
const
nkMemory::StringView
& name)
const
;
98
unsigned
int
getAttributeCount
()
const
;
106
unsigned
int
getTotalDeclarationSlots
()
const
;
112
void
removeAttribute
(
unsigned
int
index) ;
118
void
removeAttribute
(
const
nkMemory::StringView
& name) ;
125
bool
hasAttribute
(
const
nkMemory::StringView
& name)
const
;
126
127
// Operators
132
bool
operator<
(
const
MeshInputLayout
& other)
const
;
137
bool
operator==
(
const
MeshInputLayout
& other)
const
;
138
} ;
139
}
nkGraphics::MeshInputLayout::hasAttribute
bool hasAttribute(const nkMemory::StringView &name) const
nkGraphics::MeshInputLayout::addAttribute
void addAttribute(const MeshInputLayoutAttribute &attribute)
nkGraphics::MeshInputLayout::setAttribute
void setAttribute(const MeshInputLayoutAttribute &attribute, unsigned int index)
nkGraphics::MeshInputLayout::removeAttribute
void removeAttribute(unsigned int index)
nkGraphics::MeshInputLayoutAttribute
Describes an attribute in a mesh layout.
Definition:
MeshInputLayoutAttribute.h:12
nkGraphics::MeshInputLayout::removeAttribute
void removeAttribute(const nkMemory::StringView &name)
nkGraphics::MeshInputLayout::operator<
bool operator<(const MeshInputLayout &other) const
nkGraphics::MeshInputLayout::setTexCoordAttributeName
void setTexCoordAttributeName(const nkMemory::StringView &value)
nkGraphics::MeshInputLayout
Describes the layout of data inside a mesh.
Definition:
MeshInputLayout.h:12
nkGraphics::MeshInputLayout::getNormalAttributeName
nkMemory::StringView getNormalAttributeName() const
nkGraphics::MeshInputLayout::getTotalDeclarationSlots
unsigned int getTotalDeclarationSlots() const
nkGraphics::MeshInputLayout::getAttribute
const MeshInputLayoutAttribute * getAttribute(unsigned int index) const
nkGraphics::MeshInputLayout::getHash
unsigned long long getHash() const
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition:
StringView.h:22
nkGraphics::MeshInputLayout::operator==
bool operator==(const MeshInputLayout &other) const
nkGraphics::MeshInputLayout::MeshInputLayout
MeshInputLayout()
nkGraphics::MeshInputLayout::getTexCoordAttributeName
nkMemory::StringView getTexCoordAttributeName() const
nkGraphics::MeshInputLayout::getPositionAttributeName
nkMemory::StringView getPositionAttributeName() const
nkGraphics::MeshInputLayout::setNormalAttributeName
void setNormalAttributeName(const nkMemory::StringView &value)
nkGraphics::MeshInputLayout::~MeshInputLayout
~MeshInputLayout()
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition:
BoundingBox.h:7
nkGraphics::MeshInputLayout::getAttributeCount
unsigned int getAttributeCount() const
nkGraphics::MeshInputLayout::setPositionAttributeName
void setPositionAttributeName(const nkMemory::StringView &value)
nkGraphics::MeshInputLayout::getAttribute
const MeshInputLayoutAttribute * getAttribute(const nkMemory::StringView &name) const
Generated by
Doxygen
1.8.18